﻿using System;
using System.Xml.Linq;
using FreeSql.DataAnnotations;

namespace LF.Domain.Entities
{
	/// <summary>
	/// 用户权限
	/// </summary>
    [Table(Name = "SysUserRole")]
    public class UserRole:BaseEntity
	{
		/// <summary>
		/// 权限ID
		/// </summary>
		public Guid RoleId { get; set; }
		/// <summary>
		/// 用户ID
		/// </summary>
		public Guid UserId { get; set; }
        
        /// <summary>
        /// 关联的角色信息
        /// </summary>
        [Navigate(nameof(RoleId))]
        public virtual Role Role { get; set; }
	}
}

